package com.hry.store.dao;

import com.hry.store.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    int checkEmail(String checkEmail);

    int selectKeyByEmail(@Param("email") String email, @Param("key") String key);

    void updateUserStatus(User updateUser);

    int login(@Param("email") String email, @Param("password") String password);

    User getUserInfoByEmail(String email);
}